from PySide2.QtWidgets import QApplication, QMainWindow, QPushButton, QPlainTextEdit, QMessageBox

from PySide2.QtUiTools import QUiLoader
from PySide2.QtCore import QFile

from widgets.PlayControl import PlayControl
import threading

# import sys
# import os
# sys.path.append('components')
# print (sys.path)

class MainPage:
    def __init__(self):
        qfile_stats = QFile("../../ui/LogPlayer.ui")
        qfile_stats.open(QFile.ReadOnly)
        self.ui = QUiLoader().load(qfile_stats)
        qfile_stats.close()
        self._initUi()

    def _initUi(self):
        self.playControl = PlayControl(self.ui)

app = QApplication([])
mainPage = MainPage()
mainPage.ui.show()

app.exec_()
